# coding=utf-8

#-- SQLAlchemy config --
SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1/uzwdb'
SQLALCHEMY_ECHO = True # just for test

#-- redis config--
REDIS_HOST = '127.0.0.1'
REDIS_PORT = 6379

#-- cache regions config --
CACHE_REGIONS = {'model:game': 300, 'model:channel': 600, 'sys:activecode': 60, 'model:account': 300}

#-- wtforms config --
WTF_CSRF_ENABLED = False

#-- open id config --
CONNECTS = {
    'qq': {
        'authorize_url': 'https://graph.qq.com/oauth2.0/authorize',
        'request_token_url': 'https://graph.qq.com/oauth2.0/token',
        'openid_url': 'https://graph.qq.com/oauth2.0/me',
        'scope': 'get_user_info',
        'appid': '310512976',
        'secret': '1rrYF18QdFR66HPN',
        'authorize_callback': 'http://g.uzwan.cn/account/connect/qq/callback'
    }
}

#-- flask app config --
DEBUG = True
SECRET_KEY = 'L!*Z1rKq0aaVG1$3uiscBFc5Ki.133D1'
SESSION_COOKIE_NAME = 'uzwan'